home *** CD-ROM | disk | FTP | other *** search
/ CD BIT 75 / CD BIT 75.iso / Software / ooo / f_0020 / sbasic.jar / text / sbasic / common / 03020305.xml < prev    next >
Encoding:
Extensible Markup Language  |  2003-08-01  |  3.3 KB  |  25 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Seek Statement [Runtime]</title><meta name="filename" content="text/sbasic/common/03020305"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         span.T1{
  7.                 font-weight:bold;}
  8.         </style></head><body>
  9.   
  10.   
  11.   <p class="P1"/>
  12.   <p class="Head1"><help:paragraphinfo state="U" number="1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="seek; function" tag="kw66552_1" xmlns:help="http://openoffice.org/2000/help"/><a name="seek"/><help:link Id="66552" xmlns:help="http://openoffice.org/2000/help">Seek Statement [Runtime]</help:link></p>
  13.   <p class="Paragraph"><help:paragraphinfo state="U" number="2" xmlns:help="http://openoffice.org/2000/help"/>Determines the position for the next writing or reading in a file that was opened with the Open statement.<a name="ende"/></p>
  14.   <p class="Paragraph"><help:paragraphinfo state="U" number="3" xmlns:help="http://openoffice.org/2000/help"/>For random access files, the Seek function returns the number of the next record to be written.</p>
  15.   <p class="Paragraph"><help:paragraphinfo state="U" number="4" xmlns:help="http://openoffice.org/2000/help"/>For all other files, the function returns the byte position at which the next operation is to occur.</p>
  16.   <p class="Paragraph"><help:paragraphinfo state="U" number="5" xmlns:help="http://openoffice.org/2000/help"/>See also: <help:link Id="66386" Eid="open" xmlns:help="http://openoffice.org/2000/help">Open</help:link>, <help:link Id="66592" Eid="seek" xmlns:help="http://openoffice.org/2000/help">Seek</help:link>.</p>
  17.   <p class="Head2"><help:paragraphinfo state="U" number="6" xmlns:help="http://openoffice.org/2000/help"/>Syntax:</p>
  18.   <p class="Paragraph"><help:paragraphinfo state="U" number="7" xmlns:help="http://openoffice.org/2000/help"/>Seek[#]FileNumber, Position (As Long)</p>
  19.   <p class="Head2"><help:paragraphinfo state="U" number="8" xmlns:help="http://openoffice.org/2000/help"/>Parameters:</p>
  20.   <p class="Paragraph"><help:paragraphinfo state="U" number="9" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">FileNumber: </span>Returns the file number determined by the Open statement.</p>
  21.   <p class="Paragraph"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/><span class="T1">Position: </span>Position for the next writing or reading. Position can be a number between 1 and 2,147,483,647. According to the file type, the position indicates the number of the record (files in the Random mode) or the byte position (files in the Binary, Output, Append or Input mode). The first byte in a file is position 1, the second byte is position 2, and so on.</p>
  22.   <p class="Paragraph"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="66475" Eid="errorcode" xmlns:help="http://openoffice.org/2000/help"/></p>
  23.   <p class="Paragraph"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="66475" Eid="err5" xmlns:help="http://openoffice.org/2000/help"/></p>
  24.   <p class="Paragraph"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="66475" Eid="err52" xmlns:help="http://openoffice.org/2000/help"/></p>
  25.  </body></html>